class BaseScreen extends eui.Component {
	public constructor() {
		super();
	}

	protected childrenCreated(): void {
        super.childrenCreated();
        this.resize();
    }

	public resize():void
	{
		this.height=utils.CoreData.instance.screenH;
	}

	public backOut(target:egret.DisplayObject,easeTime:number,offertX:number,offsetY:number,delayTime:number,callBack=null):void
    {
        target.x+=offertX;
        target.y+=offsetY;
        if(callBack){
            TweenMax.to(target,easeTime,{alpha:1,x:target.x-offertX,y:target.y-offsetY,ease:Back.easeOut,delay:delayTime,onComplete:()=>{
                callBack();
            }});
        }else{
            TweenMax.to(target,easeTime,{alpha:1,x:target.x-offertX,y:target.y-offsetY,ease:Back.easeOut,delay:delayTime});
        }
    }

    public cubicOut(target:egret.DisplayObject,easeTime:number,offertX:number,offsetY:number,delayTime:number,callBack=null):void
    {
        target.x+=offertX;
        target.y+=offsetY;
        if(callBack){
            TweenMax.to(target,easeTime,{alpha:1,x:target.x-offertX,y:target.y-offsetY,ease:Cubic.easeOut,delay:delayTime,onComplete:()=>{
                callBack();
            }});
        }else{
            TweenMax.to(target,easeTime,{alpha:1,x:target.x-offertX,y:target.y-offsetY,ease:Cubic.easeOut,delay:delayTime});
        }
    }

	public dispose(): void {

	}
}